package com.feisuanyz.lyweb01.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feisuanyz.lyweb01.pojo.domain.CooperativePurchaseDO;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
 * CooperativePurchaseMapper
 *
 * @author deng
 * @date 2025-02-26 11:57:37
 */
public interface CooperativePurchaseMapper extends BaseMapper<CooperativePurchaseDO> {

    /**
     * 插入合作购买信息
     * @Param CooperativePurchaseDO
     * @Return int
     */
    int insert(CooperativePurchaseDO entity);

    /**
     * 更新合作购买信息
     * @Param CooperativePurchaseDO
     * @Return int
     */
    int updateById(CooperativePurchaseDO entity);

    /**
     * 删除合作购买信息
     * @Param purchaseId
     * @Return int
     */
    int deleteById(@Param("purchaseId") Integer purchaseId);

    /**
     * 查询合作购买信息
     * @Param QueryWrapper
     * @Return IPage<CooperativePurchaseDO>
     */
    IPage<CooperativePurchaseDO> selectPage(IPage<CooperativePurchaseDO> page, @Param("ew") QueryWrapper<CooperativePurchaseDO> wrapper);

    /**
     * 通过ID查询合作购买信息
     * @Param purchaseId
     * @Return CooperativePurchaseDO
     */
    CooperativePurchaseDO selectById(@Param("purchaseId") Integer purchaseId);
}
